#include "Stdafx.h"
#include "PubDefs.h"
#include <stdio.h>



void CStringToWChar(WCHAR* wszDest, int nSize, CString str)
{
#ifndef UNICODE
	MultiByteToWideChar(CP_ACP, 0, str, -1, 
		wszDest, nSize);
#else
	wcsncpy_s(wszDest, nSize, str, nSize - 1);
#endif

}